package com.lanchetech.service;


import com.lanchetech.bean.request.UrlReq;
import com.lanchetech.bean.response.ContentUploadPictureResp;
import com.lanchetech.bean.response.ResultData;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface FileService {
    ResultData<String> uploadFile(MultipartFile file, String oldImage);

    ResultData<List<String>> uploadMultiFile(MultipartFile[] files);

    ContentUploadPictureResp updateContentPicture(MultipartFile file);

    byte[] createQrcode(String content, int width, int height);

    String createQrcodeBase64(String content, int width, int height) throws IOException;

    ResultData<String> getCommonQrcode(UrlReq url);
}